<?php use_stylesheet('/render/main.css')?>

<?php slot('title') ?>
    <?php echo $portal->getTitle().' - '.$section->getTitle()?>
<?php end_slot() ?>

<?php if($section->getUsesHeader()):?>
    <div id="header">
        <?php for($i = 1; $i <= count($headerObjects); $i++):?>
            <?php include_partial('render'.$headerObjects[$i]->getType()->getType(),
                    array(strtolower($headerObjects[$i]->getType()->getType()) => $headerObjects[$i], 'portal' => $portal
                    )) ?>
        <?php endfor;?>
    </div>
<?php endif;?>
<br>
<div id="mainContent">
    <div class="request-form">
        <form action="<?php echo url_for('render_download_process_request',$content)?>" 
              method="post" >
            <?php echo $form->render() ?>
            <div>
                <input type="submit" value="Enviar" />
            </div>
        </form>
    </div>
</div>
<br>
<?php if($section->getType()->getType() != 'Home'): ?>
    <?php include_partial('breadcrumbs', array('portal' => $portal, 'section' => $section, 'content' => null))?>
<?php endif; ?>
<?php if($section->getUsesFooter()):?>
    <div id="footer">
        <?php for($i = 1; $i <= count($footerObjects); $i++):?>
            <?php include_partial('render'.$footerObjects[$i]->getType()->getType(),
                    array(strtolower($footerObjects[$i]->getType()->getType()) => $footerObjects[$i], 'portal' => $portal)
                ) ?>
        <?php endfor;?>
        <p>
            <?php echo html_entity_decode($portal->getFooter()->getHtml())?>
        </p>
    </div>
<?php endif;?>